using System.Collections.Generic;
using CommonLibrary.Model;

namespace CommonLibrary.BLL
{
    public class ComConfig
    {
        public static bool Exsits(int ComID)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.Exsits(ComID);
        }
        public static bool Insert(ComConfigInfo ComConfig)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.Insert(ComConfig);
        }
        public static bool Update(ComConfigInfo ComConfig)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.Update(ComConfig);
        }

        public static bool UpdateSendedCount(ComConfigInfo ComConfig)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.UpdateSendedCount(ComConfig);
        }

        public static bool UpdateNoSendedCount(ComConfigInfo ComConfig)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.UpdateNoSendedCount(ComConfig);
        }

        public static bool Delete(int ComID)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.Delete(ComID);
        }
        public static ComConfigInfo GetComConfig(int ComID)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.GetComConfig(ComID);
        }
        public static List<ComConfigInfo> GetList(string StrWhere)
        {
            CommonLibrary.DAL.ComConfig dal = new CommonLibrary.DAL.ComConfig();
            return dal.GetList(StrWhere);
        }
    }
}